<?php
/**
	{tnumbnail width=width_in_pixels  height=height_in_pixels}image_url{/tnumbnail}
*/

require_once cf\Config::path.'image.php';

function smarty_block_thumbnail($params, $content, &$smarty, &$repeat)
{
  if (isset($content)) 
  {
    $thumb = new cf\Thumbnail($content, $params['width'], $params['height']);
    return $thumb->url();
  }
}

?>